package com.wectrls.service;

import com.wectrls.entity.Sources;
import com.wectrls.vo.postvo.SourcesAddVo;
import org.springframework.data.domain.Sort;

import java.util.List;

public interface SourcesService {

    /**
     * 新增资源
     *
     * @param sourcesAddVo
     * @return
     */
    Sources addOne(SourcesAddVo sourcesAddVo);

    List<Sources> findByCategoryId(String categoryId, Sort sort);

    Sources findById(String sourcesId);

    Sources saveOrUpdate(Sources sources);

    void delSourcesByCategoryId(String id);
}
